// SelectInformationset.cpp : implementation file
//

#include "stdafx.h"
#include "SelectLesson.h"
#include "SelectInformationset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSelectInformationset

IMPLEMENT_DYNAMIC(CSelectInformationset, CRecordset)

CSelectInformationset::CSelectInformationset(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CSelectInformationset)
	m_LessonNumber = 0;
	m_StudentNumber = 0;
	m_nFields = 2;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dynaset;
}


CString CSelectInformationset::GetDefaultConnect()
{
	return _T("ODBC;DSN=");
}

CString CSelectInformationset::GetDefaultSQL()
{
	return _T("[SelectInformation]");
}

void CSelectInformationset::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CSelectInformationset)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Int(pFX, _T("[LessonNumber]"), m_LessonNumber);
	RFX_Int(pFX, _T("[StudentNumber]"), m_StudentNumber);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CSelectInformationset diagnostics

#ifdef _DEBUG
void CSelectInformationset::AssertValid() const
{
	CRecordset::AssertValid();
}

void CSelectInformationset::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG
